#
# Be sure to run `pod lib lint ELOPod.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ElonPod'
  s.version          = '0.2.15'
  s.summary          = 'Custom pod for personal usage.'
  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC
  s.homepage         = 'https://gitee.com/ElonWu/ElonPod'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Elon' => 'iphone1945@126.com' }
  s.source           = { :git => 'https://gitee.com/ElonWu/ElonPod.git', :tag => s.version.to_s }
  s.ios.deployment_target = '8.0'

  s.source_files = 'ElonPod/**/*.{h,m}'
  # s.resource_bundles = {
  #       'ElonPod' => ['ElonPod/**/*.png']
  #     }

  s.subspec 'SandBoxTool' do |sandBoxTool|
      sandBoxTool.source_files = 'ElonPod/SandBoxTool/**/*.{h,m}'
      sandBoxTool.dependency 'Masonry', '1.1.0'
      sandBoxTool.dependency 'SSZipArchive', '2.1.4'
      sandBoxTool.dependency 'FDFullscreenPopGesture', '1.1'
      sandBoxTool.dependency 'JDStatusBarNotification'
      sandBoxTool.frameworks = 'UIKit'
  end


  s.subspec 'BaseUITool' do |baseUITool|
      baseUITool.source_files = 'ElonPod/BaseUITool/**/*.{h,m}'
      baseUITool.frameworks = 'UIKit'
  end


  s.subspec 'Vendor' do |vendor|
      vendor.dependency 'MWPhotoBrowser', '2.1.2'
      vendor.dependency 'CYLTabBarController'

      vendor.dependency 'Masonry', '1.1.0'
      vendor.dependency 'FDFullscreenPopGesture', '1.1'
      vendor.dependency 'AFNetworking', '~> 3.2.1'

      vendor.dependency 'AFNetworking', '~> 3.2.1'
      vendor.dependency 'BlocksKit', '~> 2.2.5'
      vendor.dependency 'SDWebImage'

      vendor.frameworks = 'UIKit'
  end


  s.subspec 'Form' do |form|
      form.source_files = 'ElonPod/SWForm/**/*.{h,m}'
      form.dependency 'MWPhotoBrowser', '2.1.2'
      form.dependency 'TZImagePickerController', '3.1.9'
      form.dependency 'SDWebImage'
      form.resource_bundles = {
        'SWForm' => ['ElonPod/SWForm/**/*.png']
      }
      form.frameworks = 'UIKit'
  end


  # s.public_header_files = 'Pod/Classes/**/*.h'
  s.frameworks = 'UIKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
